package com.docker.jy.service.impl;

import java.util.List;
import com.docker.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.docker.jy.mapper.registrationcostMapper;
import com.docker.jy.domain.registrationcost;
import com.docker.jy.service.IregistrationcostService;

/**
 * 挂号记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class registrationcostServiceImpl implements IregistrationcostService 
{
    @Autowired
    private registrationcostMapper registrationcostMapper;

    /**
     * 查询挂号记录
     * 
     * @param id 挂号记录主键
     * @return 挂号记录
     */
    @Override
    public registrationcost selectregistrationcostById(Long id)
    {
        return registrationcostMapper.selectregistrationcostById(id);
    }

    /**
     * 查询挂号记录列表
     * 
     * @param registrationcost 挂号记录
     * @return 挂号记录
     */
    @Override
    public List<registrationcost> selectregistrationcostList(registrationcost registrationcost)
    {
        return registrationcostMapper.selectregistrationcostList(registrationcost);
    }

    /**
     * 新增挂号记录
     * 
     * @param registrationcost 挂号记录
     * @return 结果
     */
    @Override
    public int insertregistrationcost(registrationcost registrationcost)
    {
        registrationcost.setCreateTime(DateUtils.getNowDate());
        return registrationcostMapper.insertregistrationcost(registrationcost);
    }

    /**
     * 修改挂号记录
     * 
     * @param registrationcost 挂号记录
     * @return 结果
     */
    @Override
    public int updateregistrationcost(registrationcost registrationcost)
    {
        return registrationcostMapper.updateregistrationcost(registrationcost);
    }

    /**
     * 批量删除挂号记录
     * 
     * @param ids 需要删除的挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteregistrationcostByIds(Long[] ids)
    {
        return registrationcostMapper.deleteregistrationcostByIds(ids);
    }

    /**
     * 删除挂号记录信息
     * 
     * @param id 挂号记录主键
     * @return 结果
     */
    @Override
    public int deleteregistrationcostById(Long id)
    {
        return registrationcostMapper.deleteregistrationcostById(id);
    }
}
